<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
    <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>用户组列表</h2>
<hr>
  <table class="table table-bordered">
  <tr>
    <th>id</th>
    <th>名称</th>
    <th>状态</th>
    <th>操作</th>
  </tr>
  <foreach name="grouplist" item="vo" >
  <tr>
    <td>{$vo.id}</td>
    <td>{$vo.title}</td>
    <td>
    <if condition="$vo['status'] neq '0' ">启用
    <else /> 禁用
    </if>
</td>
    <td>
    <a href="{:U('Role/roleedit',array('id'=>$vo['id']))}">修改</a>

    <a href="{:U('Role/roledel',array('id'=>$vo['id']))}">删除</a>
    <a href="{:U('AuthGroup/grant',array('id'=>$vo['id']))}">用户组授权</a>
    </td>
  </tr>
  </foreach>
</table>
</div>
  
</body>
</html>